package reflect;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.util.Properties;

public class Test7 {

	public static void main(String[] args) throws Exception {
		
		Properties prop=new Properties();
		File file=new File("info.properties");
		InputStream in=new FileInputStream(file);
		prop.load(in);
		
		String classname=prop.getProperty("classname");
		String name=prop.getProperty("name");
		String age=prop.getProperty("age");
		System.out.println(classname);
		System.out.println(name);
		System.out.println(age);
		
		// 10
		
		// 
		

	}

}
